package link.ten_fei.service;

import java.util.List;

import link.ten_fei.dao.ChangePwdDao;
import link.ten_fei.dao.ChangePwdDaoImpl;

public class ChangePwdServiceImpl implements ChangePwdService {

	ChangePwdDao changePwdDao = new ChangePwdDaoImpl();

	@Override
	public List<String> findUsername(String olduser) {
		return changePwdDao.findUser(olduser);
	}

	@Override
	public int changeUsrAndPwd(String user, int id, String pwd) {
		return changePwdDao.changeUserAndPwd(user, id, pwd);
	}
}
